package com.sc.nft.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sc.nft.entity.UserEcologyPointsQuotaLog;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sc.nft.entity.vo.ecology.AdminQuotaLogVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;

/**
 * 用户生态燃料额度变动日志(user_ecology_points_quota_log)数据Mapper
 *
 * @author Sun
 * @since 2023-11-23 11:22:41
 * @description 由 Mybatisplus Code Generator 创建
*/
@Mapper
public interface UserEcologyPointsQuotaLogMapper extends BaseMapper<UserEcologyPointsQuotaLog> {

    /**
     * 分页查询用户额度记录
     * @param page
     * @param userId
     * @param daoName
     * @param startTime
     * @param endTime
     * @return
     */
    Page<AdminQuotaLogVO> quotaLog(Page page, @Param("userId") Long userId, @Param("daoName")String daoName,@Param("collectionName") String collectionName,@Param("startTime") Date startTime, @Param("endTime")Date endTime);
}
